﻿/*
 * User: RSny
 * Date: 5/21/2012
 * Time: 8:54 AM
 */
using System;
using System.Windows.Forms;
using Aspects.PInvoke;

namespace Aspects.Panels.Main_Panels
{
    public partial class ApplicationLauncherPanel : UserControl
    {
        public ApplicationLauncherPanel()
        {
            InitializeComponent();
        }
        
        public void LoadApplications()
        {
            var iniFile = Properties.Settings.Default.AspectsConfigFile;
            //Coretemp
            appButton1.Text = Native.GetIniFileString(iniFile, "Program1", "Name", string.Empty);
            appButton1.ProgramLocation = Native.GetIniFileString(iniFile, "Program1", "Program", string.Empty);
            //coretemp 92
            appButton2.Text = Native.GetIniFileString(iniFile, "Program2", "Name", string.Empty);
            appButton2.ProgramLocation = Native.GetIniFileString(iniFile, "Program2", "Program", string.Empty);
            //skyware
            appButton3.Text = Native.GetIniFileString(iniFile, "Program3", "Name", string.Empty);
            appButton3.ProgramLocation = Native.GetIniFileString(iniFile, "Program3", "Program", string.Empty);
//          mifare
            appButton4.Text = Native.GetIniFileString(iniFile, "Program4", "Name", string.Empty);
            appButton4.ProgramLocation = Native.GetIniFileString(iniFile, "Program4", "Program", string.Empty);
//          serial number
            appButton5.Text = Native.GetIniFileString(iniFile, "Program5", "Name", string.Empty);
            appButton5.ProgramLocation = Native.GetIniFileString(iniFile, "Program5", "Program", string.Empty);
//          check batery
            appButton6.Text = Native.GetIniFileString(iniFile, "Program6", "Name", string.Empty);
            appButton6.ProgramLocation = Native.GetIniFileString(iniFile, "Program6", "Program", string.Empty);
//          InSSIDer
            appButton7.Text = Native.GetIniFileString(iniFile, "Program7", "Name", string.Empty);
            appButton7.ProgramLocation = Native.GetIniFileString(iniFile, "Program7", "Program", string.Empty);
//          Putty
            appButton8.Text = Native.GetIniFileString(iniFile, "Program8", "Name", string.Empty);
            appButton8.ProgramLocation = Native.GetIniFileString(iniFile, "Program8", "Program", string.Empty);
//          GPS
            appButton9.Text = Native.GetIniFileString(iniFile, "Program9", "Name", string.Empty);
            appButton9.ProgramLocation = Native.GetIniFileString(iniFile, "Program9", "Program", string.Empty);
//          PenMount
            appButton10.Text = Native.GetIniFileString(iniFile, "Program10", "Name", string.Empty);
            appButton10.ProgramLocation = Native.GetIniFileString(iniFile, "Program10", "Program", string.Empty);
//          Time Sync
            appButton11.Text = Native.GetIniFileString(iniFile, "Program11", "Name", string.Empty);
            appButton11.ProgramLocation = Native.GetIniFileString(iniFile, "Program11", "Program", string.Empty);
//          Blank
            appButton12.Text = Native.GetIniFileString(iniFile, "Program12", "Name", string.Empty);
            appButton12.ProgramLocation = Native.GetIniFileString(iniFile, "Program12", "Program", string.Empty);
//          Services
            appButton13.Text = Native.GetIniFileString(iniFile, "Program13", "Name", string.Empty);
            appButton13.ProgramLocation = Native.GetIniFileString(iniFile, "Program13", "Program", string.Empty);
//          Device Manager
            appButton14.Text = Native.GetIniFileString(iniFile, "Program14", "Name", string.Empty);
            appButton14.ProgramLocation = Native.GetIniFileString(iniFile, "Program14", "Program", string.Empty);
            
        }
    }
}
